//
//  NRWCarSharePictureBottomView.m
//  New_Runway
//
//  Created by 张记 on 2018/5/30.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "NRWCarSharePictureBottomView.h"
#import "NRWCarTemplateShareVC.h"
#import "NRWCarShareTagVC.h"
#import "NRWCarSharePictureModel.h"


@implementation NRWCarSharePictureBottomView

- (IBAction)templateShare:(UIButton *)sender {
    NRWCarTemplateShareVC *templateVC = [[NRWCarTemplateShareVC alloc] init];
    templateVC.carCount = self.carCount;
    templateVC.imageModelArr = self.imageS;
    NSMutableArray *templateImage = [NSMutableArray array];
    for (NRWCarSharePictureModel *model in self.imageS) {
        if (model.isTemplate == YES) {
                [templateImage addObject:model];
            }
    }
    if (templateImage.count == 0) {
        [ShowMessage showHintMessage:@"请选择启辕车辆图片" duration:2 withRemindId:remindWarning];
        return;
    }
    [self.nav pushViewController:templateVC animated:YES];
}
- (IBAction)labelShare:(UIButton *)sender {
    
    if (self.imageS.count == 0) {
        [ShowMessage showHintMessage:@"请选择车辆图片" duration:2 withRemindId:remindWarning];
        return;
    }
    NRWCarShareTagVC *vc = [[NRWCarShareTagVC alloc] init];
    vc.imageModelArr = self.imageS;
    vc.carCount = self.carCount;
    [self.nav pushViewController:vc animated:YES];
}

@end
